<?php
session_start();
header('Content-Type: text/html; charset=UTF-8');
include_once( 'include/global.func.php' );
include_once( 'include/db_mysql.class.php' );
$db = new db_mysql;
$db->connect('localhost', 'root', '123456', 'test', 0,'utf8'); //连接数据库
define( "WTOTD_SECRET" , '077D88A2CD45B8A950BE4BB3976637CD' ); //授权码
define( "WB_CALLBACK_URL" , 'http://www.test.cc/wtotd.php' ); //返回处理页面
define('WTOTD_URL', 'https://www.wtotd.com/');//通兑宝网址
define('DT_PATH', 'http://www.test.cc/');//本平台网址
define('HTTP_REFERER', isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : DT_PATH.'login.php');

